﻿@model IEnumerable<PilotProject.TestToken>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_ExaminerLayout.cshtml";
}
  <link href="../../Content/items1/forms.css" rel="stylesheet" type="text/css" />
  <link href="../../Content/tables.css" rel="stylesheet" type="text/css" />

@*  <div>
        @Html.Partial("_Scheduledtests",@Model)
  </div>*@


<div class="datagrid">
<table>
<thead>
    <tr>
        <th>
            Test Token ID
        </th>
         <th>
            Test Date
        </th>
        <th>
            Candidate First Name
        </th>
        <th>
            Candidate Last Name
        </th>
        <th>
             Edit
        </th>
    </tr>
</thead>
 <tfoot><tr><td colspan="5"><div >&nbsp;</div></tr></tfoot>
    <tbody>
        @foreach (var item in Model)
        {
            if (!item.HasTest || item.HasTest && !item.Test.HasBeenCompleted)
            {               
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Id)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.TestDate)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Candidate.FirstName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Candidate.LastName)
                </td>
                 <td>
                    <a href="@Url.Action("EditTestToken", "ScheduleTest", new { id = item.Id })" ><img alt="Edit" src="../../Content/items1/img/rte/editIco.png" /> </a>
                 </td>
            </tr>}
        }
       </tbody>
    </table>
</div>



<div style="margin-bottom:10px;width:900px;">

<fieldset style="margin-top:10px;">
<legend>Click here to schedule a new Jump Pilot Test. </legend>

    <input type="button" id="submit"  value="Schedule Test" onclick="window.location.href='@Url.Action("ExaminerList")'" />

</fieldset>

</div>